﻿@model PhoneBilling.Models.Report3ResultModel
@{
    ViewBag.Title = "分机话务统计";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">
    function back() {
        history.go(-1); //后退1页  
    }  
</script>
@using (Html.BeginForm("Report3", "Statistics"))
{
    @Html.HiddenFor(m => m.SelectItem)
    @Html.HiddenFor(m => m.起始时间)
    @Html.HiddenFor(m => m.起始时间Time)
    @Html.HiddenFor(m => m.终止时间)
    @Html.HiddenFor(m => m.终止时间Time)
    @Html.HiddenFor(m => m.所有话类)
    @Html.HiddenFor(m => m.话类)
    @Html.Hidden("IsExport", true)
    <input type="button" value="返回" onclick="back()"/>  
    <input type="submit" value="导出Excel"/>  
    <p />
    <div>@Html.Raw(Model.Content)</div>
    <p />
    <div class="input-text">
         @Html.LabelFor(m => m.总金额)
         @Html.DisplayFor(m => m.总金额)
    </div>
    <div>
        @{
    var grid = new WebGrid(source: Model.List, canPage: false);
        }
        @grid.GetHtml(
            alternatingRowStyle: "bg",
            columns: grid.Columns
            (
                  grid.Column("部门", "部门"),
                  grid.Column("分组", "分组"),
                  grid.Column("分机号码", "分机号码"),
                  grid.Column("话单总金额", "总金额"),
                    grid.Column("内线金额", "内线金额"),
                    grid.Column("市话金额", "市话金额"),
                    grid.Column("郊县金额", "郊县金额"),
                    grid.Column("IP金额", "IP金额"),
                    grid.Column("信息金额", "信息金额"),

                    grid.Column("专线金额", "专线金额"),
                    grid.Column("国内金额", "国内金额"),

                    grid.Column("国际金额", "国际金额"),
                    grid.Column("其他金额", "其他金额")
            )
        )
    </div>
}
